<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "migration_project".
 *
 * @property int $id
 * @property string $original_project_id
 * @property string $new_project_id
 */
class MigrationProject extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'migration_project';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['original_project_id', 'new_project_id'], 'required'],
            [['original_project_id', 'new_project_id'], 'integer'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'original_project_id' => 'Original Project ID',
            'new_project_id' => 'New Project ID',
        ];
    }

    /**
     * @inheritdoc
     * @return MigrationProjectQuery the active query used by this AR class.
     */
    public static function find()
    {
        return new MigrationProjectQuery(get_called_class());
    }
}
